from urllib.request import urlopen
from bs4 import BeautifulSoup

# 打开网页
html = urlopen('https://mofanpy.com/static/scraping/list.html').read().decode('utf-8')
# 解析html
soup = BeautifulSoup(html,features='lxml')
# CSS选择器
jan = soup.find('ul',{'class':'jan'})
d_jan = jan.find_all('li')
# 遍历
for d in d_jan:
    print(d.get_text())